Skip to content

Magento Get URL with or without secure path according to current URL protocol

September 11, 2012

Use the following format to get the URL based on protocol.

Mage::getUrl(‘yourpath’, array(‘_secure’ => Mage::app()->getFrontController()->getRequest()->isSecure()));

From → Uncategorized

Leave a Comment

Leave a comment